package springboot.springboot06_ssmp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import springboot.springboot06_ssmp.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author daiqiang
 * @since 2024-06-24
 */
public interface IUserService extends IService<User> {

    void update(User User);

    //注册，新增用户
    void  addUser(User User);

    Map<String, Object> login2(User user);

    Map<String, Object> getUserInfo(String token);

    void logout(String token);

    IPage<User> getPage(int currentPage, int pageSize, User user);

    User getUserById(Integer id);

    void updateUserById(User user);

    void deleteUserById(Integer id);
}
